<?php 
namespace Emos\Field;

use Emos\Common;

class Sort extends AbstractControl {    
    public function html() {
        return null;
    }

    public function insert() {             
        $microtime = microtime(true);        
        $sec = floor($microtime);
        $msec = floor(($microtime - floor($microtime))*1000000);        
        
        $number = sprintf('%d%06d', $sec, $msec);
        
        return array($this->dbName => $number);
    }    
    
    public function update() {            
        return null;
    }
    
    public function getDdlFields() {
        return array($this->dbName => "BIGINT");
    }      
}